import request from '@/utils/request'

// 查询标准示范点列表
export function listDemonstration(query) {
  return request({
    url: '/system/demonstration/list',
    method: 'get',
    params: query
  })
}

// 查询标准示范点详细
export function getDemonstration(id) {
  return request({
    url: '/system/demonstration/' + id,
    method: 'get'
  })
}

// 新增标准示范点
export function addDemonstration(data) {
  return request({
    url: '/system/demonstration',
    method: 'post',
    data: data
  })
}

// 修改标准示范点
export function updateDemonstration(data) {
  return request({
    url: '/system/demonstration',
    method: 'put',
    data: data
  })
}

// 删除标准示范点
export function delDemonstration(id) {
  return request({
    url: '/system/demonstration/' + id,
    method: 'delete'
  })
}
